Use getPivotX directly.
The x location of the point around which the view is rotated and scaled.
view for which to get the pivot.